NULL,
&error);
if (response == NULL)
- return FALSE;
+ {
+ g_printerr (_("Failed to connect to GNOME Shell\n"));
+ return FALSE;
+ }
asv = g_variant_get_child_value (response, 0);
info = g_variant_dict_new (asv);
if (!g_variant_dict_contains (info, "uuid"))
- return FALSE;
+ {
+ g_printerr (_("Extension “%s” doesn't exist\n"), uuid);
+ return FALSE;
+ }
print_extension_info (info, DISPLAY_DETAILED);
NULL,
&error);
if (response == NULL)
- return FALSE;
+ {
+ g_printerr (_("Failed to connect to GNOME Shell\n"));
+ return FALSE;
+ }
extensions = g_variant_get_child_value (response, 0);
NULL,
&error);
if (response == NULL)
- return FALSE;
+ {
+ g_printerr (_("Failed to connect to GNOME Shell"));
+ return FALSE;
+ }
asv = g_variant_get_child_value (response, 0);
info = g_variant_dict_new (asv);
if (!g_variant_dict_contains (info, "uuid"))
- return FALSE;
+ {
+ g_printerr (_("Extension “%s” doesn't exist\n"), uuid);
+ return FALSE;
+ }
g_variant_dict_lookup (info, "hasPrefs", "b", &has_prefs);
if (!has_prefs)
- return FALSE;
+ {
+ g_printerr (_("Extension “%s” doesn't have preferences\n"), uuid);
+ return FALSE;
+ }
g_dbus_proxy_call_sync (proxy,
"OpenExtensionPrefs",
NULL,
&error);
if (response == NULL)
- return FALSE;
+ {
+ g_printerr (_("Failed to connect to GNOME Shell"));
+ return FALSE;
+ }
g_variant_get (response, "(b)", &success);
+ if (!success)
+ g_printerr (_("Failed to uninstall “%s”\n"), uuid);
+
return success;
}